package com.ruoyi.system.frontierCommand.mapper;

import com.ruoyi.system.frontierCommand.bo.TPatrolMissionQueryBo;
import com.ruoyi.system.frontierCommand.bo.TPatrolRecordQueryBo;
import com.ruoyi.system.frontierCommand.domain.TPatrolMission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.frontierCommand.vo.TPatrolMissionVo;
import com.ruoyi.system.frontierCommand.vo.TPatrolRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡护任务Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-19
 */
public interface TPatrolMissionMapper extends BaseMapper<TPatrolMission> {
    /**
     * 查询记录
     * @param query
     * @return
     */
    List<TPatrolMissionVo> selectDTO(@Param("query") TPatrolMissionQueryBo query);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    TPatrolMissionVo selectMissionById(@Param("id") Long id);

    /**
     * 根据Id查询已删除的
     * @param id
     * @return
     */
    TPatrolMissionVo selectMissionIsDeById(@Param("id") Long id);
}
